﻿using eCommerce.db.DataRespository;
using eCommerce.db.SQLDataAccess;

namespace eCommerce.db.DALRespository
{
    public class ProductPropertyValueDal
    {
        public static void Create(ProductPropertyValueEntity o)
        {
            SqlHelper.ExecuteNonQuery(DbCommon.ConnectionString, DbCommon.DatabaseSchema + "Product_PropertyValue_Create", o.ProductId, o.PropertyValueId, o.Description);
        }

        public static void DeleteByProductId(int productId)
        {
            SqlHelper.ExecuteNonQuery(DbCommon.ConnectionString, DbCommon.DatabaseSchema + "Product_PropertyValue_Delete_ByProductId", productId);
        }
    }
}
